package com.jit.monitor.model.response;

/**
 * @author crazyZhangxl on 2018/12/21.
 * Describe:
 */
public class LoginResponse {

    /**
     * userId : 2
     * tokenInfo : {"access_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1NDU0MDA2NTMsInVzZXJfbmFtZSI6Im1pYW8iLCJhdXRob3JpdGllcyI6WyJhbGwiXSwianRpIjoiODlhYzM3NzQtODA3OS00M2YyLWFhMjctODM3OTBiMjExZjllIiwiY2xpZW50X2lkIjoiZmFybUNsaWVudCIsInNjb3BlIjpbImFsbCIsInJlYWQiLCJ3cml0ZSJdfQ.tQDKssPhyR3blZsvm-ppJCgJozfZgQzPdDzABc-1hbQ","token_type":"bearer","refresh_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJtaWFvIiwic2NvcGUiOlsiYWxsIiwicmVhZCIsIndyaXRlIl0sImF0aSI6Ijg5YWMzNzc0LTgwNzktNDNmMi1hYTI3LTgzNzkwYjIxMWY5ZSIsImV4cCI6MTU0Nzk0OTQ1MywiYXV0aG9yaXRpZXMiOlsiYWxsIl0sImp0aSI6ImZkYTI3NjdiLTFmODItNGZmNC05NGQ2LTdlMDUwODkzYTM1MCIsImNsaWVudF9pZCI6ImZhcm1DbGllbnQifQ.ddGtsQvvr5XpTBOMiPQgB-J0VAbXMGafB_ebljzCdzI","expires_in":43199,"scope":"all read write","jti":"89ac3774-8079-43f2-aa27-83790b211f9e"}
     */

    private int userId;
    private TokenInfoBean tokenInfo;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public TokenInfoBean getTokenInfo() {
        return tokenInfo;
    }

    public void setTokenInfo(TokenInfoBean tokenInfo) {
        this.tokenInfo = tokenInfo;
    }

    public static class TokenInfoBean {
        /**
         * access_token : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1NDU0MDA2NTMsInVzZXJfbmFtZSI6Im1pYW8iLCJhdXRob3JpdGllcyI6WyJhbGwiXSwianRpIjoiODlhYzM3NzQtODA3OS00M2YyLWFhMjctODM3OTBiMjExZjllIiwiY2xpZW50X2lkIjoiZmFybUNsaWVudCIsInNjb3BlIjpbImFsbCIsInJlYWQiLCJ3cml0ZSJdfQ.tQDKssPhyR3blZsvm-ppJCgJozfZgQzPdDzABc-1hbQ
         * token_type : bearer
         * refresh_token : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJtaWFvIiwic2NvcGUiOlsiYWxsIiwicmVhZCIsIndyaXRlIl0sImF0aSI6Ijg5YWMzNzc0LTgwNzktNDNmMi1hYTI3LTgzNzkwYjIxMWY5ZSIsImV4cCI6MTU0Nzk0OTQ1MywiYXV0aG9yaXRpZXMiOlsiYWxsIl0sImp0aSI6ImZkYTI3NjdiLTFmODItNGZmNC05NGQ2LTdlMDUwODkzYTM1MCIsImNsaWVudF9pZCI6ImZhcm1DbGllbnQifQ.ddGtsQvvr5XpTBOMiPQgB-J0VAbXMGafB_ebljzCdzI
         * expires_in : 43199
         * scope : all read write
         * jti : 89ac3774-8079-43f2-aa27-83790b211f9e
         */

        private String access_token;
        private String token_type;
        private String refresh_token;
        private int expires_in;
        private String scope;
        private String jti;

        public String getAccess_token() {
            return access_token;
        }

        public void setAccess_token(String access_token) {
            this.access_token = access_token;
        }

        public String getToken_type() {
            return token_type;
        }

        public void setToken_type(String token_type) {
            this.token_type = token_type;
        }

        public String getRefresh_token() {
            return refresh_token;
        }

        public void setRefresh_token(String refresh_token) {
            this.refresh_token = refresh_token;
        }

        public int getExpires_in() {
            return expires_in;
        }

        public void setExpires_in(int expires_in) {
            this.expires_in = expires_in;
        }

        public String getScope() {
            return scope;
        }

        public void setScope(String scope) {
            this.scope = scope;
        }

        public String getJti() {
            return jti;
        }

        public void setJti(String jti) {
            this.jti = jti;
        }
    }
}
